package mybatis05.clazz.entity;

import mybatis05.teacher.entity.TeacherEntity;

/**
 * CREATE TABLE `szrt_class` (
  `cid` int(11) NOT NULL AUTO_INCREMENT COMMENT '班级id',
  `cname` varchar(11) DEFAULT NULL COMMENT '班级名称',
  `tid` int(11) DEFAULT NULL COMMENT '老师id',
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=1613 DEFAULT CHARSET=utf8;
 * @author Administrator
 *
 */
public class ClassEntity {
	
	private Integer cid;
	private String  cname;
	private Integer tid;
	
	/**
	 * 老师表
	 */
	private TeacherEntity teacher;
	
	
	
	public Integer getTid() {
		return tid;
	}
	public void setTid(Integer tid) {
		this.tid = tid;
	}
	public TeacherEntity getTeacher() {
		return teacher;
	}
	public void setTeacher(TeacherEntity teacher) {
		this.teacher = teacher;
	}
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	
	@Override
	public String toString() {
		return "ClassEntity [cid=" + cid + ", cname=" + cname +  ", teacher=" + teacher + "]";
	}
	
	
	
	

}
